/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, sans-serif;
}

/* ================= HEADER ================= */
.ETETE {
  width: 100%;
  background: #0a5d56;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

/* ================= MAIN CONTAINER ================= */
.cont-ct {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8rem 2rem 2rem;
  background: #f2f1f1;
}

/* ================= LAYOUT ================= */
.cont-2-ct {
  display: flex;
  gap: 2rem;
  width: 100%;
  flex: 1;
}

/* ================= MENU GAUCHE ================= */
.cont-ct-1 {
  flex: 0 0 25%;
  background: #06403b;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  max-height: calc(100vh - 10rem);
  overflow-y: auto;
}

/* BLOCS MENU */
.cont-l {
  background: #0a5d56;
  margin-bottom: 1rem;
  border-radius: 6px;
  overflow: hidden;
  transition: 0.3s;
}

.cont-l:hover {
  background: #0f7869;
}

/* TITRE MENU */
.cont-d-l {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

/* FLÈCHE */
.cont-l-b a {
  color: #fff;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

/* ROTATION FLÈCHE */
.rotate {
  transform: rotate(90deg);
}

/* ================= SOUS MENU ================= */
.cont-l-ls {
  background: #0f7869;
  display: flex;
  flex-direction: column;

  max-height: 0;
  overflow: hidden;

  transition: max-height 0.4s ease, padding 0.3s ease;
}

/* MENU OUVERT */
.cont-l-ls.show {
  max-height: 500px;
  padding: 0.5rem 1rem;
}

/* LIENS */
.cont-l-ls a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: 0.2s;
}

.cont-l-ls a:hover {
  background: #06403b;
}

/* ================= CONTENU DROITE ================= */
.cont-ct-2 {
  flex: 1;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  overflow-y: auto;
  position: relative;
  min-height: 100vh;
}

/* ================= LOADER ================= */
.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 5px solid #f3f3f3;
  border-top: 5px solid #0a5d56;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  display: none;
}

@keyframes spin {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ================= FADE ================= */
.content-inner {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.content-inner.fade-out {
  opacity: 0;
}

/* ================= FOOTER ================= */
.footer {
  text-align: center;
  padding: 20px;
  background: #0a5d56;
  color: white;
  
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

  .cont-2-ct {
    flex-direction: column;
  }

  .cont-ct-1 {
    flex: 1;
    max-height: none;
  }

  .cont-ct-2 {
    flex: 1;
  }

}